package com.lyc.wanandroid_kotlin.ui.activity.rank.mvp.model

import com.lyc.wanandroid_kotlin.base.BaseModel
import com.lyc.wanandroid_kotlin.bean.BaseListResponseBody
import com.lyc.wanandroid_kotlin.bean.CoinInfoBean
import com.lyc.wanandroid_kotlin.bean.HttpResult
import com.lyc.wanandroid_kotlin.http.RetrofitHelper
import com.lyc.wanandroid_kotlin.ui.activity.rank.mvp.contract.RankContract
import io.reactivex.Observable

/**
 * ClassName:com.lyc.wanandroid_kotlin.ui.activity.rank.mvp.model
 * Description:
 */
class RankModel : BaseModel(), RankContract.Model {
    override fun getRankList(page: Int): Observable<HttpResult<BaseListResponseBody<CoinInfoBean>>> {
        return RetrofitHelper.service.getRankList(page)
    }
}